package com.cellulam.framework.core.enums;


import com.cellulam.framework.core.utils.EnumHelper;
import lombok.Getter;

/**
 * 状态
 */
@Getter
public enum AppStatus implements CodeDescriptionFeature {

    /**
     * 启用
     */
    ENABLE(1, "启用"),
    /**
     * 禁用
     */
    DISABLE(2, "禁用");

    private final int code;
    private final String description;

    AppStatus(int code, String description){
        this.code = code;
        this.description = description;
    }

    public static AppStatus valueOf(Integer code){
        return EnumHelper.valueOf(code, AppStatus.class);
    }
}
